Skip to content

[2.7] bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881)#13906

Merged
skrah merged 1 commit into
python:2.7from
eric-wieser:backport-bpo37188
Jun 8, 2019
Merged

[2.7] bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (GH-13881)#13906
skrah merged 1 commit into
python:2.7from
eric-wieser:backport-bpo37188

Conversation

@eric-wieser

@eric-wieser eric-wieser commented Jun 8, 2019

Copy link
Copy Markdown
Contributor

itemsize can be zero when _type_ is an empty struct or length-0 array.

This line used to be length * itemsize < 0, which didn't exhibit this problem.

https://bugs.python.org/issue37188

`itemsize` can be zero when `_type_` is an empty struct or length-0 array.

This line used to be `length * itemsize < 0`, which didn't exhibit this problem.
@eric-wieser

Copy link
Copy Markdown
Contributor Author

Not done using cherry_picker because pip3.5 install cherry_picker installs code that does not run on python 3.5.

@bedevere-bot

Copy link
Copy Markdown

@skrah: Please replace # with GH- in the commit message next time. Thanks!

@skrah

skrah commented Jun 8, 2019

Copy link
Copy Markdown
Contributor

@eric-wieser Thanks, not using cherry_picker is of course fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants